package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品图片对象 shop_product_image
 * 
 * @author Alan Zhang
 * @date 2021-09-12
 */
public class ShopProductImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品图片ID */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgSrc;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNumber;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setImgSrc(String imgSrc) 
    {
        this.imgSrc = imgSrc;
    }

    public String getImgSrc() 
    {
        return imgSrc;
    }
    public void setOrderNumber(Long orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber() 
    {
        return orderNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("imgSrc", getImgSrc())
            .append("orderNumber", getOrderNumber())
            .append("createTime", getCreateTime())
            .toString();
    }
}
